using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace TJ_MainNameSpace
{
    public partial class OptionForm : Form
    {
        public OptionForm()
        {
            InitializeComponent();
            this.btn_BColorSet.BackColor = GlobalValues.s_RootFormBColor;
        }

        private void btn_BColorSet_Click(object sender, EventArgs e)
        {
            colorDialog1.ShowDialog();
            ((Button)sender).BackColor = colorDialog1.Color;
        }

        private void btn_OK_Click(object sender, EventArgs e)
        {
            GlobalValues.s_RootFormBColor = this.btn_BColorSet.BackColor;
            DialogResult = DialogResult.OK;
            this.Close();
        }

        private void btn_Cancel_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}